package org.dromara.netbar.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.netbar.domain.NetbarClient;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 客机管理视图对象 netbar_client
 *
 * @author Lion Li
 * @date 2025-07-04
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = NetbarClient.class)
public class NetbarClientVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 客户端ID
     */
    @ExcelProperty(value = "客户端ID")
    private Long clientId;

    /**
     * 客户端编号
     */
    @ExcelProperty(value = "客户端编号")
    private String clientNo;

    /**
     * 座位类型
     */
    @ExcelProperty(value = "座位类型")
    private Long seatTypeId;

    private String seatTypeName;
    /**
     * 客户端密码
     */
    @ExcelProperty(value = "客户端密码")
    private String clientPassword;

    /**
     * 状态（0正常 1已绑定 2使用中 9停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=已绑定,2=使用中,9=停用")
    private String status;

    private String onlineTimeStr;

    private Long onlineTime;
    /**
     * 服务状态
     */
    private String serviceStatus;

    /**
     * MAC地址
     */
    @ExcelProperty(value = "MAC地址")
    private String macAddress;

    /**
     * 最后登录时间
     */
    @ExcelProperty(value = "最后登录时间")
    private Date lastOpenTime;

    /**
     * 最后关闭时间
     */
    @ExcelProperty(value = "最后关闭时间")
    private Date lastCloseTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


    public String tenantId;
}
